<?php

require_once 'init.php';

$product = cf\api\shop\getProduct(cf\param::get('id'));
$smarty->assign('product',$product);

$group = cf\api\shop\getCategory($product['groups'][0]);
$smarty->assign('group',$group);

$smarty->assign('topGroup',cf\api\shop\getCategory($group['branch'][0]['id']));
$smarty->assign('topBranch',cf\api\shop\getCategoriesTree($group['branch'][0]['id']));
$smarty->assign('leftTpl','group_left_tree');

show('product', 'КАТАЛОГ');
?>

